package cn.edu.zut.service;

import cn.edu.zut.model.User;

import java.util.List;

public interface UserService {
    void insertUser(User user);
    User selectOneUserById(int id);
    User selectOneUserByName(String name);
    List<User> selectAllUser();
    void updateUserById(User user);
    void updateUserByName(User user);
    void deleteUserById(int id);
    void deleteUserByName(String name);
}
